import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import { IFeidaoAiBrowserComponent } from '@dfeidao/web/interfaces';
import hide_loading from '../../atom/hide-loading';
import show_loading from '../../atom/show-loading';
import P06 from './P06';

export default async function a013(fd: IFeidaoAiBrowserComponent, args: { num: number }) {
	const query = args;
	show_loading();
	const count = await nodejs('roler/zj-000004/s014', query);
	hide_loading();
	let num = 1;
	if (count !== 0) {
		num = 2;
	}
	query.num = num;
	show_loading();
	const str = await nodejs('roler/zj-000004/s015', query);
	hide_loading();
	render(fd, str, P06, 'P06', 'inner');
	// console.log(str);
}
